/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.asset.acceptancecheck.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fuyao.cloud.asset.dto.ac.AcSearchDTO;
import com.fuyao.cloud.asset.dto.ac.AssetAcCreateDTO;
import com.fuyao.cloud.asset.dto.ac.AssetAcEditDTO;
import com.fuyao.cloud.asset.entity.ac.AssetAc;
import com.fuyao.cloud.asset.vo.ac.AcPageVO;
import com.fuyao.cloud.common.core.util.R;

import java.util.List;

/**
 * 验收管理
 *
 * @author liyue
 * @date 2021-12-03 09:41:17
 */
public interface AssetAcService extends IService<AssetAc> {

	/**
	 * 查询验收管理信息
	 *
	 * @param query 查询松造器
	 * @return 验收管理信息。
	 */
	List listAssetAc(QueryWrapper<AssetAc> query);

	/**
	 * 验收管理创建象
	 *
	 * @return 验收管理创建对象
	 */
	AssetAcCreateDTO create();

	/**
	 * 验收管理编辑对象
	 *
	 * @param id 验收id
	 * @return 验收管理编辑对象
	 */
	AssetAcEditDTO edit(Long id);

	/**
	 * 验收分页查询
	 *
	 * @param page  分页对象
	 * @param query 查询构造器
	 * @return 分信
	 */
	IPage<AcPageVO> getAcPage(Page page, QueryWrapper<AssetAc> query);

	/**
	 * 重写入库分页方法
	 *
	 * @param page         分页对象
	 * @param queryWrapper 条件构造器
	 * @param searchDTO    参数对象
	 * @return 分页对象
	 */
	IPage<AssetAc> page(Page page, QueryWrapper queryWrapper, AcSearchDTO searchDTO);

	/**
	 * 批量删除
	 * @param ids 业务ids集合
	 * @return R
	 */
	R batchDelete(List<Long> ids);

	/**
	 * 上架入库单
	 * @param assetAc 验收对象
	 * @return R
	 */
    R createNinorder(AssetAc assetAc);

}
